#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main()
{
    char animal[20]="bear";
    const char *bird="wren";
    char *ps;
    cout<<"animal:"<<animal<<" bird:"<<bird<<endl;

    cin>>animal;
    ps=animal;
    cout<<animal<<" animal at:"<<(int*)animal<<endl;
    cout<<ps<<" ps at:"<<(int*)ps<<endl;

    ps=new char[strlen(animal)+1];
    strcpy(ps, animal);
    cout<<"after copy :";
    cout<<animal<<" animal at:"<<(int*)animal<<endl;
    cout<<ps<<" ps at:"<<(int*)ps<<endl;
    delete [] ps;
    return 0;
}